package com.triones.yjj.controller.web;

import cn.dev33.satoken.annotation.SaCheckPermission;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.page.TableDataInfo;
import com.triones.yjj.entity.bo.MemberListParams;
import com.triones.yjj.entity.vo.MarkMemberRuleVO;
import com.triones.yjj.entity.vo.MemberVO;
import com.triones.yjj.service.MarkMemberRuleService;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * 规则管理
 *
 * @Author: triones
 */
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/system/markMemberRule")
public class MarkMemberRuleController extends BaseController {

    private final MarkMemberRuleService markMemberRuleService;

    /**
     * 查询客户列表（分页）
     */
    @GetMapping
    public R<MarkMemberRuleVO> queryRule() {
        return R.ok(markMemberRuleService.queryRule());
    }

    /**
     * 查询客户列表（分页）
     */
    @PostMapping("/{value}")
    public R<Void> saveRule(@PathVariable Integer value) {
        markMemberRuleService.saveRule(value);
        return R.ok();
    }
}
